package com.knight.model.base;

import java.util.Date;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

public abstract class BaseContent <M extends BaseContent<M>> extends Model<M> implements IBean{
	public M setId(Integer id) {
		set("id", id);
		return (M) this;
	}

	public Integer getId() {
		return get("id");
	}
	
	public M setTitle(String title){
		set("title",title);
		return (M) this;
	}
	
	public String getTitle() {
		return get("title");
	}
	
	public M setType(String type){
		set("type",type);
		return (M) this;
	}
	
	public String getType() {
		return get("type");
	}
	
	public M setCreateDate(Date createDate) {
		set("createDate", createDate);
		return (M) this;
	}

	public Date getCreateDate() {
		return get("createDate");
	}
}
